<script setup lang='ts'>
import { useCounterStore } from '@/store/counter';

const store = useCounterStore()
       
</script>
       
<template>
<view>计数: {{ store.count }}</view>
<view>双倍: {{ store.double }}</view>
<view>双倍: {{ store.num1 }}</view>
<button @click="store.increment()">加1</button>
<button @click="store.decrement()">减1</button>
</template>
       
<style scoped>
       
</style>